#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int arr[10], i, imax, imin;
	printf("Input 10 numbers\n");
	for (i = 0; i < 10; i++)
		scanf("%d",&arr[i]);
	imax = imin = arr[0];
	for (i = 1; i < 10; i++)
	{
		if (arr[i] > imax)  imax = arr[i];
		if (arr[i] < imin)  imin = arr[i];
	}
	printf("max=%d min=%d\n",imax,imin);

	return 0;
}